package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 第三方券商
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_third_party")
public class ThirdParty extends Model<ThirdParty> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "code", type = IdType.NONE)
    private String code;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 小程序ID
     */
    @TableField("appid")
    private String appid;
    /**
     * 跳转地址
     */
    @TableField("redirect_url")
    private String redirectUrl;
    /**
     * 参数
     */
    @TableField("params")
    private String params;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 应用分类
     */
    @TableField("app_category")
    private String appCategory;
    /**
     * 参数类型
     */
    @TableField("param_type")
    private String paramType;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;

    public void freeData() {
        this.code = null;
        this.name = null;
        this.appid = null;
        this.redirectUrl = null;
        this.params = null;
        this.addTime = null;
        this.updateTime = null;
        this.appCategory = null;
        this.paramType = null;
        this.operator = null;
        this.orgId = null;
    }

}
